package pattern.decorator;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class LowerTest {
	public static void main(String[] args) {
		int c;
		File file = new File("f:/test.txt");
		InputStream in;
		try {
			in = new LowerCaseInputStream(new BufferedInputStream(new FileInputStream(file)));
			while((c = in.read()) >= 0){
				System.out.print((char)c);
			}
			in.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
